import request from '@/utils/request'

// 根据物料号码查询仓库
export function GetPrintingAPI(params) {
  return request({
    url: '/storage/incoming-material-printing/list',
    method: 'GET',
    params
  })
}

// 采购打印详情
export function GetDeiltAPI(data) {
  return request({
    url: '/storage/incoming-material-printing/getView/' + data,
    method: 'GET'
  })
}

// 打印（采购）
export function PrintDataAPI(data) {
  return request({
    url: '/storage/incoming-material-printing-detail/print',
    method: 'POST',
    data
  })
}

// 采购打印一键入库
export function OneKeyWarehousingAPI(data) {
  return request({
    url: '/storage/incoming-material-printing/oneKeyWarehousing',
    method: 'POST',
    data
  })
}

// 采购打印明细列表
export function GetDeiltListAPI(params) {
  return request({
    url: '/storage/incoming-material-printing-detail/list',
    method: 'GET',
    params
  })
}

// 委外打印列表
export function GetSubcontractAPI(params) {
  return request({
    url: '/storage/incoming-material-subcontract-printing/list',
    method: 'GET',
    params
  })
}

// 委外打印详情
export function GetDeilt2API(data) {
  return request({
    url: '/storage/incoming-material-subcontract-printing/getSubcontractPrintView/' + data,
    method: 'GET'
  })
}

// 打印（委外）
export function SubcontractPrintAPI(data) {
  return request({
    url: '/storage/incoming-material-printing-detail/subcontractPrint',
    method: 'POST',
    data
  })
}

// 委外入库一键入库
export function oneKeyWarehousing2API(data) {
  return request({
    url: '/storage/incoming-material-subcontract-printing/oneKeyWarehousing',
    method: 'POST',
    data
  })
}

// 委外打印明细列表
export function GetDeiltList2API(params) {
  return request({
    url: '/storage/incoming-material-printing-detail/subcontractList',
    method: 'GET',
    params
  })
}

// 获取仓库-库区-库位列表
export function GetCombinationWarehouseAPI() {
  return request({
    url: '/storage/warehouse/list',
    method: 'GET'
  })
}
